package com.dlc.shop.seckill.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dlc.shop.bean.model.SeckillStockPointSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author FrozenWatermelon
 * @date 2023-11-23 15:32:01
 */
public interface SeckillStockPointSkuMapper extends BaseMapper<SeckillStockPointSku> {

    /**
     * 获取列表
     * @return 列表
     */
    List<SeckillStockPointSku> list();

    /**
     * 根据id获取
     *
     * @param seckillStockPointSkuId id
     * @return
     */
    SeckillStockPointSku getBySeckillStockPointSkuId(@Param("seckillStockPointSkuId") Long seckillStockPointSkuId);

    /**
     * 更新
     * @param seckillStockPointSku
     */
    void update(@Param("seckillStockPointSku") SeckillStockPointSku seckillStockPointSku);

    /**
     * 根据id删除
     * @param seckillStockPointSkuId
     */
    void deleteById(@Param("seckillStockPointSkuId") Long seckillStockPointSkuId);

    /**
     * 批量保存
     * @param seckillStockPointSkuList
     */
    void batchSave(@Param("seckillStockPointSkuList") List<SeckillStockPointSku> seckillStockPointSkuList);
}
